//
//  MyjifenTableViewCell.m
//  LoveAttention
//
//  Created by 鞠超 on 16/1/5.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "MyjifenTableViewCell.h"

@implementation MyjifenTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self)
    {
        [self p_setupView];
    }
    return self;
}

- (void)p_setupView
{
    self.label_1 = [[UILabel alloc] init];
    self.label_1.font = [UIFont systemFontOfSize:13];
    self.label_1.text = @"111";
    self.label_1.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.label_1];
    
    self.label_2 = [[UILabel alloc] init];
    self.label_2.font = [UIFont systemFontOfSize:13];
    self.label_2.text = @"111";
    self.label_2.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.label_2];
    
    self.label_3 = [[UILabel alloc] init];
    self.label_3.font = [UIFont systemFontOfSize:13];
    self.label_3.text = @"111";
    self.label_3.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.label_3];
    
    self.label_4 = [[UILabel alloc] init];
    self.label_4.font = [UIFont systemFontOfSize:13];
    self.label_4.text = @"111";
    self.label_4.textAlignment = NSTextAlignmentCenter;
//    [self.contentView addSubview:self.label_4];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat x_width = self.contentView.frame.size.width /3;
    
    self.label_1.frame = CGRectMake(0 , 15, x_width, 30);
    
    self.label_2.frame = CGRectMake(CGRectGetMaxX(self.label_1.frame) , 15, x_width, 30);

    self.label_3.frame = CGRectMake(CGRectGetMaxX(self.label_2.frame) , 15, x_width, 30);

//    self.label_4.frame = CGRectMake(CGRectGetMaxX(self.label_3.frame), 15, x_width, 30);
}









@end
